package com.sf.eos.log.demo;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Slf4j
@Data
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@RequestMapping("/user")
public class LogDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(LogDemoApplication.class, args);
    }

    @GetMapping("/index")
    public String index(){
        log.error("拉萨多久发来的飞机啊多少");
        log.warn("拉萨多久发来的飞机啊多少");
        return "OK";
    }
}
